<?php 
	function render($template,$vars = array(),$folder=""){
        if($vars != null)
		  extract($vars);
		if(is_array($template)){
			foreach($tempalte as $k){
					$cl = strtolower(get_class($k));
					$$cl = $k;
					include ROOT_DIRECTORY."/views/".$folder."_$cl.php";
			}
		}
		else{
			include ROOT_DIRECTORY."/views/".$folder."$template.php";
		}
	}
	function render_admin($template,$vars = array(),$folder=""){
        if($vars != null)
		  extract($vars);
		if(is_array($template)){
			foreach($tempalte as $k){
					$cl = strtolower(get_class($k));
					$$cl = $k;
					include ROOT_ADMIN."/views/".$folder."_$cl.php";
			}
		}
		else{
			include ROOT_ADMIN."/views/".$folder."$template.php";
		}
	}
?>